package com.ricky.base.page;


import lombok.Data;

/**
 * @Author Ricky
 * @Date 2024/6/20 14:08
 * @Description: 排序Dto对象
 */
@Data
public class SortDto {
    //排序方式ASC、DESC
    private String orderType;
    //排序字段
    private String orderField;


    public SortDto(String orderType, String orderField) {
        this.orderType = orderType;
        this.orderField = orderField;
    }

    //默认为DESC排序
    public SortDto(String orderField) {
        this.orderField = orderField;
        this.orderType = "desc";
    }

}
